#ifndef FIELDVALIDATOR_H
#define FIELDVALIDATOR_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>

class FieldValidator : public QWidget
{
    Q_OBJECT

public:
    FieldValidator(QWidget *parent);

    void addAllFields();
    void setButton(QPushButton *button);

public slots:
    void check_fields(QString);

private:
    bool formValid;

    QPushButton *button;

    QList<QLineEdit *> widgetList;
};

#endif // FIELDVALIDATOR_H
